/**
 * 二叉树节点类
 * 
 * @author 杨满球（本地）
 *
 */
public class BiTreeNode {
	private Object data;// 节点数据
	private BiTreeNode leftChild;// 左子节点
	private BiTreeNode rightChild;// 右子节点

	public BiTreeNode(Object data) {
		this.data = data;
	}

	public BiTreeNode(Object data, BiTreeNode leftChild,
			BiTreeNode rightChild) {
		this.data = data;
		this.leftChild = leftChild;
		this.rightChild = rightChild;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public BiTreeNode getLeftChild() {
		return leftChild;
	}

	public void setLeftChild(BiTreeNode leftChild) {
		this.leftChild = leftChild;
	}

	public BiTreeNode getRightChild() {
		return rightChild;
	}

	public void setRightChild(BiTreeNode rightChild) {
		this.rightChild = rightChild;
	}
}
